<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>博客首页</title>
</head>
<body>

<div th:if="${user}">
    <p>欢迎回来, <span th:text="${user.username}">这里是用户名</span>!</p>

    <p><a th:href="@{/logout}">退出登录</a></p>
</div>

<hr>
<h2>博客文章列表...</h2>
<p>这里将来是你的博客内容</p>

</body>
</html>